<template>
  <div>
    <!-- <input type="text" ref="myInp" /> -->
    <input type="text" v-focus />
  </div>
</template>

<script>
export default {
  mounted() {
    // this.$refs.myInp.focus();
  },
  directives: {
    focus: {
      inserted(el) {
        el.focus();
      },
    },
  },
};
</script>

<style>
</style>